package com.ityu.cloudclientone.feign;

import feign.Response;
import feign.codec.ErrorDecoder;

/**
 * author: yu.jl
 * e-mail: bbfx89625@gmail.com
 * time  : 2021/6/25
 * desc  :
 */
public class FeignException implements ErrorDecoder {
    @Override
    public Exception decode(String s, Response response) {
        System.out.println("访问结果码："+response.status());
        //null 代表进入熔断
        return null;
    }
}

